/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Administrator
 */
public abstract class AbstractQueue <E> implements Queue{

    public int size, count;

    public abstract void queue(Object element) throws QueueOverflow;
    public abstract E dequeue() throws QueueUnderflow;
    public abstract E peek() throws QueueUnderflow;

    public boolean getEmpty(){
        if (count == 0)
            return(true);
        return(false);
    }

    public boolean getFull(){
        if (count == size)
            return(true);
        return(false);
    }
}
